/**
 * 
 */
package com.sci.web.daoimpl;

import java.util.List;

import org.springframework.orm.ibatis.support.SqlMapClientDaoSupport;

import com.sci.web.bean.Enterprise_Authentication;

/**
 * @author  BaiFuyou
 * @date: Nov 5, 2011 6:24:31 PM
 */
public class DataReportMEnterpriseEuthenticationDao extends SqlMapClientDaoSupport implements com.sci.web.dao.DataReportMEnterpriseEuthenticationDao {

	/* (non-Javadoc)
	 * @see com.sci.web.dao.DataReportMEnterpriseEuthenticationDao#getAllEnterprise_AuthenticationByUid(int)
	 */
	@Override
	public List<Enterprise_Authentication> getAllEnterprise_AuthenticationByUid(int uid) {
		// TODO Auto-generated method stub
		return super.getSqlMapClientTemplate().queryForList("datereportseason.getallEnterprise_Authenticationdata",uid);
	}

	/* (non-Javadoc)
	 * @see com.sci.web.dao.DataReportMEnterpriseEuthenticationDao#getEnterpriseBaseId(int)
	 */
	@Override
	public int getEnterpriseBaseId(int uid) {
		// TODO Auto-generated method stub
		return (Integer)super.getSqlMapClientTemplate().queryForObject("datereportseason.getenid",uid);
	}

	/* (non-Javadoc)
	 * @see com.sci.web.dao.DataReportMEnterpriseEuthenticationDao#insertNewEnterprise_AuthenticationData(com.sci.web.bean.Enterprise_Authentication)
	 */
	@Override
	public boolean insertNewEnterprise_AuthenticationData(Enterprise_Authentication ea) {
		// TODO Auto-generated method stub
		return (Integer)super.getSqlMapClientTemplate().insert("datereportseason.insertnewEnterprise_Authentication",ea)>0?true:false;
	}

	/* (non-Javadoc) "updateEnterprise_Authentication"
	 * @see com.sci.web.dao.DataReportMEnterpriseEuthenticationDao#updateEnterprise_AuthenticationData(com.sci.web.bean.Enterprise_Authentication)
	 */
	@Override
	public boolean updateEnterprise_AuthenticationData(Enterprise_Authentication ea) {
		// TODO Auto-generated method stub
		return (Integer)super.getSqlMapClientTemplate().update("datereportseason.updateEnterprise_Authentication",ea)>0?true:false;
	}

}
